package io.yunho.jddns.component;

import cn.hutool.cache.Cache;
import cn.hutool.cache.CacheUtil;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

/**
 * @author: Jason
 * @date: 2021/1/21 20:29
 * @description:
 */
@Component
public class CachConfig {
    @Bean
    public Cache cache(){
        return CacheUtil.newFIFOCache(1);
    }
}
